package com.maidou.qiantai.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户对象 os_member
 * 
 * @author maidou
 * @date 2024-03-13
 */
public class Member extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 账号表主键 */
    private Long id;

    /** 用户的openid(微信小程序) */
    @Excel(name = "用户的openid(微信小程序)")
    private Long openInfoId;

    /** 用户的union_id（用户唯一性） */
    @Excel(name = "用户的union_id", readConverterExp = "用=户唯一性")
    private Long unionId;

    /** 会员等级id */
    @Excel(name = "会员等级id")
    private Long levelId;

    /** 头像 */
    @Excel(name = "头像")
    private String header;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    /** 账号 */
    @Excel(name = "账号")
    private String username;

    /** 密码 */
    @Excel(name = "密码")
    private String password;

    /** 昵称 */
    @Excel(name = "昵称")
    private String nickname;

    /** 性别（0男1女） */
    @Excel(name = "性别", readConverterExp = "0=男1女")
    private Integer gender;

    /** 生日 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生日", width = 30, dateFormat = "yyyy-MM-dd")
    private Date birth;

    /** 个签 */
    @Excel(name = "个签")
    private String sign;

    /** 职业 */
    @Excel(name = "职业")
    private String job;

    /** 成长值 */
    @Excel(name = "成长值")
    private Long growth;

    /** 积分 */
    @Excel(name = "积分")
    private Long integration;

    /** 状态 */
    @Excel(name = "状态")
    private Integer status;

    /** 城市 */
    @Excel(name = "城市")
    private String city;

    /** 账号来源 */
    @Excel(name = "账号来源")
    private Integer sourceType;

    /** 最近登录时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最近登录时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastLoginTime;

    /** 账号权限 */
    @Excel(name = "账号权限")
    private Integer accountPermission;

    /** 用户会话密钥 */
    @Excel(name = "用户会话密钥")
    private String sessionKey;

    /** 邮箱 */
    @Excel(name = "邮箱")
    private String email;

    /** 授权时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "授权时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date authTime;

    /** 一键登录凭证 */
    @Excel(name = "一键登录凭证")
    private String authCredential;

    /** 逻辑删除，0为未删除，1为删除 */
    @Excel(name = "逻辑删除，0为未删除，1为删除")
    private Integer isDelete;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOpenInfoId(Long openInfoId) 
    {
        this.openInfoId = openInfoId;
    }

    public Long getOpenInfoId() 
    {
        return openInfoId;
    }
    public void setUnionId(Long unionId) 
    {
        this.unionId = unionId;
    }

    public Long getUnionId() 
    {
        return unionId;
    }
    public void setLevelId(Long levelId) 
    {
        this.levelId = levelId;
    }

    public Long getLevelId() 
    {
        return levelId;
    }
    public void setHeader(String header) 
    {
        this.header = header;
    }

    public String getHeader() 
    {
        return header;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setUsername(String username) 
    {
        this.username = username;
    }

    public String getUsername() 
    {
        return username;
    }
    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }
    public void setNickname(String nickname) 
    {
        this.nickname = nickname;
    }

    public String getNickname() 
    {
        return nickname;
    }
    public void setGender(Integer gender) 
    {
        this.gender = gender;
    }

    public Integer getGender() 
    {
        return gender;
    }
    public void setBirth(Date birth) 
    {
        this.birth = birth;
    }

    public Date getBirth() 
    {
        return birth;
    }
    public void setSign(String sign) 
    {
        this.sign = sign;
    }

    public String getSign() 
    {
        return sign;
    }
    public void setJob(String job) 
    {
        this.job = job;
    }

    public String getJob() 
    {
        return job;
    }
    public void setGrowth(Long growth) 
    {
        this.growth = growth;
    }

    public Long getGrowth() 
    {
        return growth;
    }
    public void setIntegration(Long integration) 
    {
        this.integration = integration;
    }

    public Long getIntegration() 
    {
        return integration;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setCity(String city) 
    {
        this.city = city;
    }

    public String getCity() 
    {
        return city;
    }
    public void setSourceType(Integer sourceType) 
    {
        this.sourceType = sourceType;
    }

    public Integer getSourceType() 
    {
        return sourceType;
    }
    public void setLastLoginTime(Date lastLoginTime) 
    {
        this.lastLoginTime = lastLoginTime;
    }

    public Date getLastLoginTime() 
    {
        return lastLoginTime;
    }
    public void setAccountPermission(Integer accountPermission) 
    {
        this.accountPermission = accountPermission;
    }

    public Integer getAccountPermission() 
    {
        return accountPermission;
    }
    public void setSessionKey(String sessionKey) 
    {
        this.sessionKey = sessionKey;
    }

    public String getSessionKey() 
    {
        return sessionKey;
    }
    public void setEmail(String email) 
    {
        this.email = email;
    }

    public String getEmail() 
    {
        return email;
    }
    public void setAuthTime(Date authTime) 
    {
        this.authTime = authTime;
    }

    public Date getAuthTime() 
    {
        return authTime;
    }
    public void setAuthCredential(String authCredential) 
    {
        this.authCredential = authCredential;
    }

    public String getAuthCredential() 
    {
        return authCredential;
    }
    public void setIsDelete(Integer isDelete) 
    {
        this.isDelete = isDelete;
    }

    public Integer getIsDelete() 
    {
        return isDelete;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("openInfoId", getOpenInfoId())
            .append("unionId", getUnionId())
            .append("levelId", getLevelId())
            .append("header", getHeader())
            .append("phone", getPhone())
            .append("username", getUsername())
            .append("password", getPassword())
            .append("nickname", getNickname())
            .append("gender", getGender())
            .append("birth", getBirth())
            .append("sign", getSign())
            .append("job", getJob())
            .append("growth", getGrowth())
            .append("integration", getIntegration())
            .append("status", getStatus())
            .append("city", getCity())
            .append("sourceType", getSourceType())
            .append("lastLoginTime", getLastLoginTime())
            .append("accountPermission", getAccountPermission())
            .append("remark", getRemark())
            .append("sessionKey", getSessionKey())
            .append("email", getEmail())
            .append("authTime", getAuthTime())
            .append("authCredential", getAuthCredential())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("isDelete", getIsDelete())
            .toString();
    }
}
